package io.renren.modules.book.controller;


import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.service.UserService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class TestScheduler {
    @Resource
    UserService userService;
   // @Scheduled(cron = "0/5 * * * * ? ")
    public void testScheduler1(){
        // 一分钟往tbuser插一条数据
       /* UserEntity entity = new UserEntity();
        entity.setUsername("星蚀");
        entity.setMobile("123");
        userService.save(entity);*/
    }
}
